package ipower.studentworks.action;
import ipower.studentworks.service.MenuService;

/**
 * 主菜单
 * */
public class MenuAction extends BaseAction {
	private MenuService menuService;
	private String systemId;
	
	public void setMenuService(MenuService menuService) {
		this.menuService = menuService;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}
	
	public void tree(){
		if(this.menuService != null && this.systemId != null && !this.systemId.isEmpty()){
			this.writeJson(this.menuService.tree(this.systemId));
		}
	}
}